import java.util.Scanner;

public class yiyuanerci {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double a=in.nextDouble();
        double b=in.nextDouble();
        double c=in.nextDouble();
        double d=b*b-4*a*c;
        if(d<0){
            System.out.println("NO");
        }
        else {double x1,x2;
            x1=(-b+Math.sqrt(b*b-4*a*c))/(2*a);//求根公式
            x2=(-b-Math.sqrt(b*b-4*a*c))/(2*a);
            if(x1==x2){
                System.out.println((int)(x1+0.5));//以%g输出，省略浮点数后面的0
            }
            else if( x1 < x2 )
            {
                System.out.println((int)(x2+0.5) +" " +(int)(x1+0.5));
            }
            else {
                System.out.println((int)(x1+0.5)+" "+(int)(x2+0.5));
            }
        }
    }
}
